package gfyx_crm_config

import "time"

// CREATE TABLE `gfyx_crm_config` (
//  `uid` char(36) NOT NULL COMMENT '主键，uuid',
//  `system` varchar(100) NOT NULL DEFAULT '' COMMENT "crm系统类型，neocrm-销售易",
//  `auth_url` varchar(255) NOT NULL DEFAULT '' COMMENT "鉴权接口的地址",
//  `config` varchar(500) NOT NULL DEFAULT '' COMMENT "配置信息",
//  `created_on` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT "记录创建时间",
//  `created_by` varchar(40) NOT NULL DEFAULT '' COMMENT "记录创建人",
//  `modified_on` datetime NOT NULL COMMENT "记录更新时间",
//  `modified_by` varchar(40) NOT NULL DEFAULT '' COMMENT "记录更新人",
//  `is_deleted` tinyint(1) NOT NULL DEFAULT '0'  COMMENT "软删除字段，0-正常记录，1-已删除",
//  PRIMARY KEY (`uid`)
//) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='第三方CRM系统配置表';

type GfyxCrmConfigPo struct {
	Uid        string `gorm:"primary_key"`
	System     string
	AuthUrl    string
	Config     string
	CreatedOn  time.Time
	CreatedBy  string
	ModifiedOn time.Time
	ModifiedBy string
	IsDeleted  int32
}

func (po GfyxCrmConfigPo) TableName() string {
	return "gfyx_crm_config"
}
